Replace gdk_threads_add_timeout* with g_timeout_add()
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 2 Feb 2018 14:51:47 +0000 (15:51 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 3 Feb 2018 11:06:58 +0000 (12:06 +0100)
commitc655759cefa56efdb0cb943bb5dada3ff75a963c
treeef945ea7131b6419d00828fa8661d86691563d83
parent334acbfc39cc08869932ec046e4d13e6c4b64be6
Replace gdk_threads_add_timeout* with g_timeout_add()

The main GDK thread lock is not portable and deprecated.

The only reason why gdk_threads_add_timeout() and
gdk_threads_add_timeout_full() exist is to allow invoking a callback
with the GDK lock held, in case 3rd party libraries still use the
deprecated gdk_threads_enter()/gdk_threads_leave() API.

Since we're removing the GDK lock, and we're releasing a new major API,
such code cannot exist any more; this means we can use the GLib API for
installing timeout callbacks.

https://bugzilla.gnome.org/show_bug.cgi?id=793124
43 files changed:
demos/gtk-demo/images.c
gdk/gdkframeclockidle.c
gdk/wayland/gdkdevice-wayland.c
gdk/win32/gdkdnd-win32.c
gdk/win32/gdkselection-win32.c
gdk/x11/gdkdnd-x11.c
gtk/gtkbutton.c
gtk/gtkcalendar.c
gtk/gtkcellrenderertext.c
gtk/gtkdnd.c
gtk/gtkentry.c
gtk/gtkentrycompletion.c
gtk/gtkexpander.c
gtk/gtkfilechooserwidget.c
gtk/gtkfilesystemmodel.c
gtk/gtkgesturelongpress.c
gtk/gtkgesturemultipress.c
gtk/gtkiconview.c
gtk/gtkmenu.c
gtk/gtkmenuitem.c
gtk/gtknotebook.c
gtk/gtkprintoperation-win32.c
gtk/gtkprintoperation.c
gtk/gtkrange.c
gtk/gtkrecentmanager.c
gtk/gtkscrolledwindow.c
gtk/gtkspinbutton.c
gtk/gtkstackswitcher.c
gtk/gtktextview.c
gtk/gtktooltip.c
gtk/gtktreeview.c
gtk/gtkwindow.c
gtk/inspector/misc-info.c
gtk/inspector/statistics.c
modules/printbackends/cups/gtkprintbackendcups.c
tests/testassistant.c
tests/testcombo.c
tests/testcombochange.c
tests/testdnd.c
tests/testentrycompletion.c
tests/testgtk.c
tests/testtoolbar.c
tests/testtreeflow.c